import request from '@/utils/request'

// 查询部件销售订单列表
export function listSalepartorder(query) {
  return request({
    url: '/salepartorder/salepartorder/list',
    method: 'get',
    params: query
  })
}

// 查询部件销售订单详细
export function getSalepartorder(salepartorderid) {
  return request({
    url: '/salepartorder/salepartorder/' + salepartorderid,
    method: 'get'
  })
}

// 新增部件销售订单
export function addSalepartorder(data) {
  return request({
    url: '/salepartorder/salepartorder',
    method: 'post',
    data: data
  })
}

// 修改部件销售订单
export function updateSalepartorder(data) {
  return request({
    url: '/salepartorder/salepartorder',
    method: 'put',
    data: data
  })
}

// 删除部件销售订单
export function delSalepartorder(salepartorderid) {
  return request({
    url: '/salepartorder/salepartorder/' + salepartorderid,
    method: 'delete'
  })
}
